<%@ page contentType="text/html;charset=utf-8" %>
<jsp:useBean id="tri" class="tom.jiafei.Triangle" scope="request" />

<html>
<head>
	<title>triangel</title>
</head>
<body bgcolor="#AAFF99"><font size="3">

	<form action="" method="post">
		输入三角形三边L:
		sideA: <input type="text" name="sideA" value="0" size="5"></input>
		sideB: <input type="text" name="sideB" value="0" size="5"></input>
		sideC: <input type="text" name="sideC" value="0" size="5"></input>
		<input type="submit" value="提交"></input>
	</form>

	<hr>

	<jsp:setProperty name="tri" property="*"  />
	三角形的三边是：
	<jsp:getProperty name="tri" property="sideA"/>,
	<jsp:getProperty name="tri" property="sideB"/>,
	<jsp:getProperty name="tri" property="sideC"/>

	<br><b>这三条边能够成一个三角形吗？<jsp:getProperty name="tri" property="triangle" />
	<br>面积是：<jsp:getProperty name="tri" property="area" /></b>
	

</font>
</body>
</html>